package com.yanqu.road.entity.log.ruishou;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

@FieldTypeAnnotation(tableName = "t_l_ck_activity_rui_shou_shoot", autoSave = true, dataUpload = true, eventName = "bless_play",uploadCk = true,desc = "祥瑞赐福-抽奖")
public class LogRuiShouShoot extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "地区id", dataAttribute = "bless_area")
    private int areaId;
    @FieldTypeAnnotation(desc = "抽奖次数", dataAttribute = "bless_playtype")
    private int times;
    @FieldTypeAnnotation(desc = "消耗的道具", dataAttribute = "bless_playcost")
    private String cost;
    @FieldTypeAnnotation(desc = "本次结果列表", dataAttribute = "bless_playtime", saveJson = true)
    private List<Map<String, Object>> monsterResultList = new ArrayList<>();
    @FieldTypeAnnotation(desc = "死亡记录列表", dataAttribute = "bless_playget", saveJson = true)
    private List<Map<String, Object>> monsterDeadList = new ArrayList<>();
    @FieldTypeAnnotation(desc = "获得积分", dataAttribute = "bless_playscore")
    private long addScore;
    @FieldTypeAnnotation(desc = "当前积分", dataAttribute = "bless_score")
    private long score;

    public LogRuiShouShoot(long userId, int activityId, int areaId, int times, String cost, List<Map<String, Object>> monsterResultList, List<Map<String, Object>> monsterDeadList, long addScore, long score, Date time) {
        this.userId = userId;
        this.activityId = activityId;
        this.areaId = areaId;
        this.times = times;
        this.cost = cost;
        this.monsterResultList = monsterResultList;
        this.monsterDeadList = monsterDeadList;
        this.addScore = addScore;
        this.score = score;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getAreaId() {
        return areaId;
    }

    public void setAreaId(int areaId) {
        this.areaId = areaId;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }

    public List<Map<String, Object>> getMonsterResultList() {
        return monsterResultList;
    }

    public void setMonsterResultList(List<Map<String, Object>> monsterResultList) {
        this.monsterResultList = monsterResultList;
    }

    public List<Map<String, Object>> getMonsterDeadList() {
        return monsterDeadList;
    }

    public void setMonsterDeadList(List<Map<String, Object>> monsterDeadList) {
        this.monsterDeadList = monsterDeadList;
    }

    public long getAddScore() {
        return addScore;
    }

    public void setAddScore(long addScore) {
        this.addScore = addScore;
    }

    public long getScore() {
        return score;
    }

    public void setScore(long score) {
        this.score = score;
    }
}
